package org.tity.test.entity.raw.oa;

import org.tity.sql.entity.EntitySet;
import org.tity.sql.data.Rcd;
import org.tity.sql.entity.Entity;
import javax.persistence.Table;
import org.tity.sql.entity.annotations.TableDesc;
import javax.persistence.Id;
import org.tity.sql.entity.annotations.IdGenerator;
import javax.persistence.Column;
import org.tity.sql.meta.DBTypeCategery;
import org.tity.sql.entity.annotations.ColumnDesc;
import org.tity.sql.dao.DAO;


/*
 * 此类代码为自动生成，请勿修改 !
 */

/**
 * 
 * @author tity-code-builder-powered-by-lifangjie
 * @date 2019-02-13 09:57:00
 **/
@javax.persistence.Entity
@Table(name="oa_task")
@TableDesc("")
public class Task extends Entity {
	/**
	 * 用于按照当前实体指定参数集
	*/
	public static final String PARAM_NAMES="[$:allfields:org.tity.test.entity.raw.oa.Task:&]";
	/**
	 * 用于按照当前实体主键指定参数集
	*/
	public static final String PARAM_PK_NAMES="[$:pkfields:org.tity.test.entity.raw.oa.Task:&]";

	/**
	 * 构造函数(从数据库构建)
	*/
	public Task(EntitySet ownerSet,Rcd rcd) {
		super(ownerSet,rcd);
		super.logicValues=new Object[]{"Y","N"};
	}

	/**
	 * 构造函数(直接构建)
	*/
	public Task() {
		super(null,null);
		super.logicValues=new Object[]{"Y","N"};
	}

	/**
	 * 获取字段 id 的值<br/>
	 */
	@Id
	@IdGenerator(type=IdGenerator.SUID)
	@Column(name="id",nullable=false,length=16)
	@ColumnDesc(label="id",comment="id",internal=false,type=DBTypeCategery.string)
	public String getId() {
		return this.getValue("id",String.class);
	}

	/**
	 * 设置字段 id 的值<br/>
	 */
	public Task setId(String value) {
		super.setValue("id",value);
		return this;
	}

	/**
	 * 获取字段 title 的值<br/>
	 */
	@Column(name="title",nullable=true,length=45)
	@ColumnDesc(label="title",comment="title",internal=false,type=DBTypeCategery.string)
	public String getTitle() {
		return this.getValue("title",String.class);
	}

	/**
	 * 设置字段 title 的值<br/>
	 */
	public Task setTitle(String value) {
		super.setValue("title",value);
		return this;
	}

	/**
	 * 获取字段 incharge_user_id 的值<br/>
	 */
	@Column(name="incharge_user_id",nullable=true)
	@ColumnDesc(label="incharge_user_id",comment="incharge_user_id",internal=false,type=DBTypeCategery.biginteger)
	public Long getInchargeUserId() {
		return this.getValue("incharge_user_id",Long.class);
	}

	/**
	 * 设置字段 incharge_user_id 的值<br/>
	 */
	public Task setInchargeUserId(Long value) {
		super.setValue("incharge_user_id",value);
		return this;
	}

	/**
	 * 生成并设置ID值
	*/
	@Override 
	public Task generateId() {
		super.generateIdInternal(null);
		return this;
	}

	/**
	 * 通过指定的DAO，生成并设置ID值
	*/
	@Override 
	public Task generateId(DAO dao) {
		super.generateIdInternal(dao);
		return this;
	}

}
